<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use App\Http\Models\Banner;
use Illuminate\Http\Request;

/**
 * 其他接口
 * Class TaskContrroler
 * @package App\Http\Controllers\Api
 */
class TaskController extends Controller
{
    //
    public function banner()
    {
        $data = Banner::orderBy('id','desc')->get();
        if (!empty($data)){
            $json = ajax(200,'返回成功',$data);
        }else{
            $json = ajax(204,'暂无数据');
        }
        return $json;
    }
}
